Skip to content

Remove conflicting gr LSP keymap - #115

Merged
stanfish06 merged 1 commit into
masterfrom
codex/github-mention-audit]-gr-buffer-local-keymap-blocks-neov
May 28, 2026
Merged

stanfish06 merged 1 commit into
masterfrom
codex/github-mention-audit]-gr-buffer-local-keymap-blocks-neov

Conversation

@stanfish06

Copy link
Copy Markdown
Owner

Motivation

  • The buffer-local gr mapping shadows Neovim 0.11+ built-in gr* LSP mappings (grr/grn/gra/gri) and makes those built-ins unreachable when gr is set.

Description

  • Removed the vim.keymap.set("n", "gr", vim.lsp.buf.references, opts) mapping from lua/config/plugin_config.lua to avoid shadowing the built-in gr* keys.
  • Updated the comment in lua/config/options.lua to reflect that only gd remains set buffer-local via LspAttach.

Testing

  • Ran git diff --check, which completed successfully.
  • Attempted nvim --headless -u init.lua '+quit', but nvim is not installed in the environment so this check could not be run.
  • Attempted to validate the Lua files with lua -e 'assert(loadfile("lua/config/plugin_config.lua")); assert(loadfile("lua/config/options.lua"))', but lua is not installed in the environment so this check could not be run.

Codex Task

@stanfish06
stanfish06 merged commit 0075264 into master May 28, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant